package com.cbtx.module_sp.ui.window;

import java.io.Serializable;

public class MainMenuBean2 implements Serializable {


    public int iconId;
    public String title;
    public String launchIntent;

    public String apkName;
    public String apkUrl;
    public String iconUrl;

    public int status;
    public int progress;

    public static final int STATUS_START = 0;
    public static final int STATUS_INSTALL = 1;
    public static final int STATUS_END = 2;
    public static final int STATUS_ERROR = -2;

    public String getStatusStr() {
        if (status == STATUS_START){
            return "下载中";
        }else  if (status == STATUS_INSTALL){
            return "安装中";
        }else if (status == STATUS_END){
            return "已安装";
        }else if (status == STATUS_ERROR){
            return "安装失败";
        }
        return "未安装";
    }
}
